<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>充值充流量列表</title>
<link href="/zhenze/Public/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.js"></script>
<script type="text/javascript" src="/zhenze/Public/My97DatePicker/WdatePicker.js"></script>

<link href="/zhenze/Public/admin/css/select.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/zhenze/Public/admin/js/jquery.idTabs.min.js"></script>
<script type="text/javascript" src="/zhenze/Public/admin/js/select-ui.min.js"></script>

<script type="text/javascript">
$(document).ready(function(e) {
	$("#buy_type").uedSelect({
		width : 150			  
	});
});
</script>
</head>

<body>

	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="<?php echo U('index/welcome');?>">首页</a></li>
			<li><a href="<?php echo U('buylist/index');?>">充值充流量列表</a></li>
		</ul>
    </div>
    
    <div class="formbody">
		<ul class="toolbar">
			<li onclick="location.href = '<?php echo U('buylist/addbuylist');?>'"><span><img src="/zhenze/Public/admin/images/t01.png" /></span>添加充值充流量</li> 
		</ul> 
		<form name="seachform" id="seachform" action="<?php echo U('buylist/index');?>" method="post">
			<ul class="seachform">
				<li><label>综合查询</label><input name="info[keyword]" id="keyword" value="<?php echo ($keyword); ?>" type="text" class="scinput" /></li>	
				<li><label>套餐分类</label> 
					<div class="vocation">
					<select id="buy_type" name="info[buy_type]">
						<option value="">选择套餐</option> 
						<?php if(is_array($get_states)): $i = 0; $__LIST__ = $get_states;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$data): $mod = ($i % 2 );++$i;?><option value="<?php echo ($key); ?>" <?php if($key == $buy_type ): ?>selected<?php endif; ?>><?php echo ($data); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>
					</select> 
					<i class="Validform_checktip"></i>
					</div>
				</li>
				<li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
			</ul>
		</form>
		
		<table class="tablelist">
			<thead>
				<tr>
					<th><input name="" type="checkbox" value="" /></th>
					<th>编号</th>
					<th>套餐分类</th>
					<th>显示值</th>
					<th>销售金额</th>
					<th>备注信息</th>
					<th>操作</th>
				</tr>
			</thead>
			<tbody>
				<?php if(is_array($listinfo)): $i = 0; $__LIST__ = $listinfo;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$buy): $mod = ($i % 2 );++$i;?><tr>
					<td><input name="" type="checkbox" value="" /></td>
					<td><?php echo ($buy["buy_id"]); ?></td>
					<td><?php echo ($get_states[$buy['buy_type']]); ?></td>
					<td><?php echo ($buy["buy_money"]); ?></td>
					<td><?php echo ($buy["buy_price"]); ?></td>
					<td><?php echo ($buy["buy_remark"]); ?></td>
					<td>
						<a href="<?php echo U('buylist/editbuylist',array('buy_id'=>$buy['buy_id']));?>" class="tablelink">编辑</a>
						<a href="<?php echo U('buylist/delbuylist',array('buy_id'=>$buy['buy_id']));?>" onclick="{if(confirm('确认删除?')){return true;}return false;}" class="tablelink">删除</a>
					</td>
				</tr><?php endforeach; endif; else: echo "" ;endif; ?>
			</tbody>
		</table>

		<?php echo ($pageshow); ?>

    </div>
	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>

</html>